package cn.jtfadmin.base.doc.swagger.controller;

import cn.jtfadmin.base.doc.contants.Contants;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * swagger
 */
@Controller
@RequestMapping
public class BaseDocController {
    /**
     * api目录 302跳转
     * @return 真实API文档路径
     */
    @GetMapping(value = Contants.URL)
    public String docapi(){
        return "redirect:/swagger-ui/";
    }
}
